<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 thansitional//EN" "http://www.w3.org/th/html4/loose.dtd">
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>设备管理首页</title>
	<link rel="stylesheet" href="scripts/bootstrap/css/bootstrap.min.css" />
	<script src="scripts/jquery-3.1.1.min.js" type="text/javascript"></script>
	<script src="scripts/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	
	<script type="text/javascript">
		$(function() {
			device_view(1);
		});
		
		function device_view(currPage) {
			$.ajax({
				type: 'post',
				url: '${pageContext.request.contextPath}/device/getDevice.action',
				data: {
					currPage: currPage
				}
				success: function(data) {
					$().html(data);
				}
			});
		}
		
		function device_run() {
			
		}
	</script>
</head>

<body>
	<div id="viewDevice"></div>
	<div id=""></div>
</body>
</html>